local fb_actions = require "telescope".extensions.file_browser.actions
require("telescope").setup {
  extensions = {
    file_browser = {
      theme = "dropdown",
      -- disables netrw and use telescope-file-browser in its place
      hijack_netrw = true,
      mappings = {
        ["i"] = {
            ["<S-a>"] = fb_actions.create,
            ["<S-r>"] = fb_actions.rename,
            ["<S-d>"] = fb_actions.remove,
        },
        ["n"] = {
            ["<C-h>"] = fb_actions.goto_home_dir,
            ["c"] = fb_actions.create,
            ["r"] = fb_actions.rename,
            ["d"] = fb_actions.remove,
            ["m"] = fb_actions.move,
            ["<C-d>"] = fb_actions.copy,
            ["h"] = fb_actions.toggle_hidden,
            ["<C-w>"] = fb_actions.goto_cwd,
            ["<C-t>"] = fb_actions.change_cwd,
        }
      },
    },
  },
}
-- To get telescope-file-browser loaded and working with telescope,
-- you need to call load_extension, somewhere after setup function:
require("telescope").load_extension "file_browser"
